import { defineStore } from "pinia";

export const useCounterStore = defineStore("counter", {
  actions: {
    increment(value: number) {
      this.counter += value;
    },
  },
  state() {
    return { counter: 0 };
  },
});
